package com.center.biz.impl;

import com.center.api.model.EduStatisticsDay;
import com.center.api.remote.RemoteEduStatisticsDayService;
import com.center.biz.dao.EduStatisticsDayMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = "1.0",interfaceClass = RemoteEduStatisticsDayService.class)
public class RemoteEduStatisticsDayServiceImpl implements RemoteEduStatisticsDayService {

    @Autowired
    private EduStatisticsDayMapper eduStatisticsDayMapper;

    @Override
    public int save(EduStatisticsDay eduStatisticsDay) {
        return eduStatisticsDayMapper.insertSelective(eduStatisticsDay);
    }

    @Override
    public int update(EduStatisticsDay eduStatisticsDay) {
        return eduStatisticsDayMapper.updateByPrimaryKeySelective(eduStatisticsDay);
    }

    @Override
    public int delete(int id) {
        return eduStatisticsDayMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<EduStatisticsDay> select(EduStatisticsDay eduStatisticsDay) {
        return null;
    }

    @Override
    public EduStatisticsDay getById(int id) {
        return eduStatisticsDayMapper.selectByPrimaryKey(id);
    }
}
